/* Game of life class */
#ifndef GOL_H
    #define GOL_H
    const int _gridh = 20;
    const int _gridw = 40;

    class Gol {
        private:
            int _generation;
            bool _celltable[_gridw][_gridh]; // the GOL grid
            void _init();

        public:
            Gol(); //Default constructor
            Gol(const char * filename);
            int _setcell(int xpos, int ypos, bool newstate);
            void calculate();
            void show();
            int get_generation();
            void read(const char * filename);
    };
#endif //GOL_H
